package com.ehome.poct.base.controller.device;

import com.ehome.poct.base.api.dto.device.TestDeviceDTO;
import com.ehome.poct.base.api.dto.device.VersionReportDTO;
import com.ehome.poct.base.api.virtual.TestDeviceService;
import com.ehome.poct.base.api.vo.device.TestDeviceVO;
import com.ehome.web.controller.AbstractBaseController;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * 设备表控制器
 *
 * @author yjm
 * @Date 2021-11-17 16:30
 */
@Slf4j
@Api(tags = "设备表")
@RestController
@RequestMapping("/test_device")
public class TestDeviceVController extends AbstractBaseController<TestDeviceVO, TestDeviceDTO> {
    
    @Autowired
    private TestDeviceService testService;
    
    @ApiOperation("版本上报")
    @PostMapping("/version_report")
    public void versionReport(@RequestBody VersionReportDTO dto){
        testService.versionReport(dto);
    }
}
